#ifndef CAMERA_H
#define CAMERA_H


#include"Transform.h"


//camera class
class Camera
{
public:
	Transform transform;
	Matrix viewmat, projmat;


	Camera(Transform trans):transform(trans) {}
	~Camera() {}

	Matrix LookAt(const Vec4f& eyePos, const Vec4f& lookat, const Vec4f& upAxis);
	Matrix Perspective(float fov, float aspect, float n, float f);//perspective transform
	Matrix Perspective(float l, float r, float n, float f, float t, float b);
	Matrix Orthographic(float l, float r, float n, float f, float t, float b);//orthogonal transform



};





#endif // !CAMERA_H

